#define  _CRT_SECURE_NO_WARNINGS
#include "Balanced-binary-tree.h"

int main()
{
	BT tree;
	tree.insert(5);
	tree.insert(10);
	tree.insert(3);
	tree.insert(1);
	tree.insert(4);
	tree.insert(7);
	tree.insert(12);

	tree.print();
	cout << "\n";

	cout << tree.find(3) << " " << tree.find(11) << "\n";
	cout << tree.size() << "\n";

	cout << tree.erase(12) << "\n";
	cout << tree.erase(0) << "\n";

	tree.print();
	cout << "\n";

	return 0;
}